#pragma once


class CMainFrame;
// CGraphThread

class CGraphThread : public CWinThread
{
	DECLARE_DYNCREATE(CGraphThread)

protected:
	CGraphThread();           // protected constructor used by dynamic creation
	virtual ~CGraphThread();

public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();

	enum {
		TM_FRAME = WM_APP, 
		TM_OPEN,
		TM_CLOSE,
	};
protected:
	DECLARE_MESSAGE_MAP()

	afx_msg void OnSetFrame(WPARAM wParam, LPARAM lParam);
	afx_msg void OnOpen(WPARAM wParam, LPARAM lParam);
	afx_msg void OnClose(WPARAM wParam, LPARAM lParam);
private:
	CMainFrame* m_pMainFrame;
};


